<?php
/**
 * Created by PhpStorm.
 * User: yf
 * Date: 2019-01-01
 * Time: 20:06
 */

return [
    'SERVER_NAME' => "EasySwoole",
    'MAIN_SERVER' => [
        'LISTEN_ADDRESS' => '0.0.0.0',
        'PORT' => 9588,
        'SERVER_TYPE' => EASYSWOOLE_WEB_SERVER, //可选为 EASYSWOOLE_SERVER  EASYSWOOLE_WEB_SERVER EASYSWOOLE_WEB_SOCKET_SERVER,EASYSWOOLE_REDIS_SERVER
        'SOCK_TYPE' => SWOOLE_TCP,
        'RUN_MODEL' => SWOOLE_PROCESS,
        'SETTING' => [
            'worker_num' => 8,
            #'task_worker_num' => 8,
            'reload_async' => true,
            #'task_enable_coroutine' => true,
            'max_wait_time' => 3,
            'enable_static_handler' => true,
            'document_root' => EASYSWOOLE_ROOT . '/static/stv',
        ],
        'TASK' => [
            'workerNum' => 4,
            'maxRunningNum' => 128,
            'timeout' => 15
        ]
    ],
    'TEMP_DIR' => 'storage/Temp',
    'LOG_DIR' => 'storage/Log',
    'MYSQL' => [
        'host' => '120.77.181.133',//防止报错,就不切换数据库了
        'port' => '3306',
        'user' => 'root',
        'timeout' => '5',
        'charset' => 'utf8mb4',
        'password' => 'Lzy_Mima@LQW8080',
        'database' => 'lzycms',
        'prefix' => 'ks_',
        'POOL_MAX_NUM' => '10',
        'POOL_TIME_OUT' => '0.1'
    ],
    'REDIS' => [
        'host' => 'r-j6c77111c5f179c4.redis.rds.aliyuncs.com',
        'port' => '6379',
        'db' => 1,
        'auth' => 'gxNU0M0&jx*nnG@x',
        'prefix' => 'ks_',
        'POOL_MAX_NUM' => '20',
        'POOL_MIN_NUM' => '7',
        'POOL_TIME_OUT' => '10',
    ],
    'TEMPLATE' => [
        'view_path' => EASYSWOOLE_ROOT . '/Template/',
        'cache_path' => EASYSWOOLE_ROOT . '/storage/runtime/',
        'view_suffix' => 'html',   //模板后缀
        'tpl_cache' => false,
        'pathinfo_depr' => '/',
    ],
    'AUTH_CONFIG' => [
        'AUTH_ON' => false,//是否开启权限验证
        'DEVELOP_MODE' => false, //是否仅开发者可见
        'IS_ADMINISTATOR' => 1,  //超级管理员id
        'ALLOW_VISIT' => ['admin/login/index.html'], //允许的url
        'DENY_VISIT' => [], //拒绝的url

    ],
    'requset_suffix' => 'html', //请求后缀与模板配置无关
    'DATA_AUTH_KEY' => ''
];
